package 设计模式.i_装饰模式;

/**
 * @author caihe
 * @date 2023/3/13 10:58
 */
public class Milk extends CondimentDecorator {

    public Milk(Drink drink) {
        super(drink);
    }

    @Override
    public Double needCost() {
        return drink.needCost() + 3;
    }

    @Override
    public String printDesc() {
        return drink.printDesc() + " + 牛奶";
    }
}
